package com.jy.adscm.hcPlan.bean;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.jy.adscm.utils.AdscmBaseUtils;

import java.io.Serializable;

/**
 * <p>
 * 耗材总装表
 * </p>
 *
 * @author yyy
 * @since 2018-08-13
 */
@TableName(value = "hc_plan_final_assembly")
public class HcPlanFinalAssembly implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
//    @TableField("ass_start_date")
    private Date ass_start_date;
//    @TableField("ass_end_date")
    private Date ass_end_date;
//    @TableField("ass_cycle_day")
    private Integer ass_cycle_day;
//    @TableField("sale_id")
    private String sale_task_flow_num;
    private int final_ass_status; //总装状态
    //    @TableField("goods_id")
    private String goods_id;
    @TableField(exist = false)
    private String goods_name;
    private String goods_model;//商品批号
    @TableField(exist = false)
    private String customer_msg; //客户信息

    public int getFinal_ass_status() {
        return final_ass_status;
    }

    public void setFinal_ass_status(int final_ass_status) {
        this.final_ass_status = final_ass_status;
    }

    public String getGoods_model() {
        return goods_model;
    }

    public void setGoods_model(String goods_model) {
        this.goods_model = goods_model;
    }

    public String getCustomer_msg() {
        if (AdscmBaseUtils.getInstance().isNotEmpty(customer_msg,null)){
            customer_msg = customer_msg.replaceAll("有限公司","")
                                            .replaceAll("单采血浆","")
                                            .replaceAll("血液制品","");
        }
        return customer_msg;
    }

    public void setCustomer_msg(String customer_msg) {
        this.customer_msg = customer_msg;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getAss_start_date() {
        return ass_start_date;
    }

    public void setAss_start_date(Date ass_start_date) {
        this.ass_start_date = ass_start_date;
    }

    public Date getAss_end_date() {
        return ass_end_date;
    }

    public void setAss_end_date(Date ass_end_date) {
        this.ass_end_date = ass_end_date;
    }

    public Integer getAss_cycle_day() {
        return ass_cycle_day;
    }

    public void setAss_cycle_day(Integer ass_cycle_day) {
        this.ass_cycle_day = ass_cycle_day;
    }

    public String getSale_task_flow_num() {
        return sale_task_flow_num;
    }

    public void setSale_task_flow_num(String sale_task_flow_num) {
        this.sale_task_flow_num = sale_task_flow_num;
    }

    public String getGoods_id() {
        return goods_id;
    }

    public void setGoods_id(String goods_id) {
        this.goods_id = goods_id;
    }

    public String getGoods_name() {
        return goods_name;
    }

    public void setGoods_name(String goods_name) {
        this.goods_name = goods_name;
    }

    @Override
    public String toString() {
        return "HcPlanFinalAssembly{" +
                "id=" + id +
                ", ass_start_date=" + ass_start_date +
                ", ass_end_date=" + ass_end_date +
                ", ass_cycle_day=" + ass_cycle_day +
                ", sale_task_flow_num='" + sale_task_flow_num + '\'' +
                ", goods_id='" + goods_id + '\'' +
                ", goods_name='" + goods_name + '\'' +
                '}';
    }
}
